.container {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--uib-size);
  width: var(--uib-size);
}

.inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--uib-size);
  width: var(--uib-size);
}

.line {
  position: absolute;
  top: calc(50% - var(--uib-stroke) / 2);
  left: 0;
  height: var(--uib-stroke);
  width: 100%;
  border-radius: calc(var(--uib-stroke) / 2);
  background-color: var(--uib-color);
  animation: rotate var(--uib-speed) ease-in-out infinite alternate;
  transition: background-color 0.3s ease;
}

.line:nth-child(1) {
  animation-delay: calc(var(--uib-speed) * -0.375);
}

.line:nth-child(2) {
  animation-delay: calc(var(--uib-speed) * -0.375);
  opacity: 0.8;
}

.line:nth-child(3) {
  animation-delay: calc(var(--uib-speed) * -0.3);
  opacity: 0.6;
}

.line:nth-child(4) {
  animation-delay: calc(var(--uib-speed) * -0.225);
  opacity: 0.4;
}

.line:nth-child(5) {
  animation-delay: calc(var(--uib-speed) * -0.15);
  opacity: 0.2;
}

.line:nth-child(6) {
  animation-delay: calc(var(--uib-speed) * -0.075);
  opacity: 0.1;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(180deg);
  }
}
